const express = require('express')
const router = express.Router()
const api = require('./api')

router.get('/login', (req, res, next) => {
  console.log("start coming login");
  api.login(req, res, next)
})

router.get('/register', (req, res, next) => {
  console.log("start coming register");
  api.register(req, res, next)
})

module.exports = router
